home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / msoftapp.zip / BBUTTON.CPP < prev    next >
C/C++ Source or Header  |  1993-06-01  |  395b  |  20 lines

  1. // bbutton.cpp : bitmap button test
  2.  
  3. #include"viewer.h"
  4.  
  5. BOOL CButtonTestDlg::OnInitDialog()
  6.     {
  7.     CDialog::OnInitDialog();
  8.  
  9.     // load bitmaps for all the bitmap buttons (does SubclassButton as well)
  10.     for (int i = 0; i < N_BUTTONS; i++)
  11.         VERIFY(buttons[i].AutoLoad(ID_BUTTON_MIN + i, this));
  12.     return TRUE;
  13.     }
  14.  
  15. void CButtonTestDlg::OnOK()
  16.     {
  17.     EndDialog(IDOK);
  18.     }
  19.  
  20.